home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 8: LINUX Games
/
Linux Cubed Series 8 - LINUX Games.iso
/
games
/
strategy
/
tictac2-.000
/
tictac2-
/
tictac2
/
Makefile
< prev
next >
Wrap
Makefile
|
1980-01-04
|
548b
|
31 lines
# make file for tictac2. edit to needs.
PROG= tictac2
DESTDIR=/usr/games
LIBDIR= $(DESTDIR)/lib
MANDIR= /usr/man/man6
CC= gcc
CFLAGS= -O -I/usr/include/ncurses
SRCS= screen.c main.c moves.c ai.c
OBJS= screen.o main.o moves.o ai.c
LIBS= -lncurses -ltermcap
all: $(PROG)
$(PROG): $(OBJS)
$(CC) $(OBJS) $(LIBS) -o $(PROG)
$(OBJS): tictac2.h
$(CC) $(CFLAGS) -c $*.c -o $@
install: all
install -c -o bin -g root -m 755 $(PROG) $(DESTDIR)
install -c -o root -g root -m 444 $(PROG).6 $(MANDIR)
clean:
rm -f $(PROG) core *.o